<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="__PUBLIC__/admin/sncss/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/admin/sncss/js/jquery.js"></script>


</head>


<body>

	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
		<li><a>首页</a></li>
		<li><a>订单管理</a></li>
		<li><a>新订单列表</a></li>
		</ul>
		</div>

		<div class="rightinfo">
		<div class="tools">

		<form id="form1" name="form1" method="post" action="{:U('/Home/User/user_order')}">
			 <!-- Unnamed (下拉列表框) -->


				<select class="newselect" id="u1_input" name="labelkey" >
					<option selected value="0">请选择标签</option>
					<?php foreach ($labeldata as $key => $value) {?>
					<option  value="<?php echo $value['label_name'];?>" <?php if($labelkey == $value['label_name']){echo "selected='selected'";}?>><?php echo $value['label_name'];?></option>
					<?php }?>
				</select>

				<select class="newselect" id="u1_input" name="levelkey" >
					<option selected value="0">请选择等级</option>
					<?php foreach ($leveldata as $key => $value) {?>
					<option  value="<?php echo $value['id'];?>" <?php if($levelkey == $value['id']){echo "selected='selected'";}?>><?php echo $value['message'];?></option>
					<?php }?>
				</select>
			<!-- Unnamed (下拉列表框) -->

				<input name="order_name" type="text" class="dfinput" placeholder="搜索自媒体/标题/订单编号" id="user" value="<?php echo $order_name;?>" />
				<input type="hidden" name="uuid" value="{$uuid}">
				<input name="" type="submit" class="btn" value="搜索"/>
		</form>

		</div>
		<table class="tablelist">
			<thead>
			<tr>
				<th>订单编号</th>
				<th>自媒体名称</th>
				<th width="180">标题</th>
				<th>类型</th>
				<!-- <th>级别</th> -->
				<th>主播价</th>
				<th width="150">下单时间</th>
				<th width="140">订单状态</th>
				</tr>
				</thead>
				<tbody>

	<foreach name='orderinfo' item='v'>
		<tr>
			<td>{$v.id}</td>
			<td>{$v.media_name}</td>
			<td><a href="{:U('/Home/Order/order_edit',array('oid'=>$v['id']))}" class="tablelink"><?php echo mb_strlen($v['title']) > 10 ? mb_substr($v['title'],0,10).'...' : $v['title'];?></a></td>
			<td>
				<switch name="v.category" >
				<case value="1">讲述类</case>
				<case value="2">情感类</case>
				<case value="3">演绎类</case>
				<case value="4">新闻类</case>
				<case value="5">英文类</case>
				<default />未知
				</switch>
			</td>
			<!-- <td>{$v.level_type}</td> -->
			<td>
				<if condition="$v.type == 1">
					{$v.usemoney}
				<else />
					{$v.words}字
				</if>
			</td>
			<td>{$v.pay_time|date="Y-m-d H:i:s",###}</td>
			<td>
				<switch name="v.status" >
				<case value="3">待交付</case>
				<case value="5">已交付未传wav</case>
				<case value="6">已交付未结算</case>
				<case value="7">已评价未传wav</case>
				<case value="8">已交付已结算</case>
				<case value="9">需要重新上传音频</case>
				<case value="11">无人接单</case>
				<case value="12">无人接单</case>
				<case value="13">超时未能完成</case>
				<case value="15">用户主动取消订单</case>
				<default />未知
				</switch>
			</td>

		</tr>
	</foreach>

				</tbody>
		</table>
		<style>.pages a,.pages span {
		display:inline-block;
		padding:2px 5px;
		margin:0 1px;
		border:1px solid #f0f0f0;
		-webkit-border-radius:3px;
		-moz-border-radius:3px;
		border-radius:3px;
}
.pages a,.pages li {
		display:inline-block;
		list-style: none;
		text-decoration:none; color:#58A0D3;
}
.pages a.first,.pages a.prev,.pages a.next,.pages a.end{
		margin:0;
}
.pages a:hover{
		border-color:#50A8E6;
}
.pages span.current{
		background:#50A8E6;
		color:#FFF;
		font-weight:700;
		border-color:#50A8E6;
}</style>

	 <div class="pages"><br />

												<div align="right">{$page}
												</div>
	 </div>

		</div>

		<script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>

</body>

</html>
